entrycompletion: Realize toplevel before attempting a grab
authorTimm Bäder <mail@baedert.org>
Fri, 19 Jan 2018 14:15:09 +0000 (15:15 +0100)
committerTimm Bäder <mail@baedert.org>
Fri, 19 Jan 2018 21:39:23 +0000 (22:39 +0100)
commit4d36a0bf352cc69e85a065e49119a7f6804bc9e2
treef3cd812f91a422c7f9e4783eda35382b1f23e6e5
parentaf0d876bb7da883af10fc4517de67d2318bf099b
entrycompletion: Realize toplevel before attempting a grab

Otherwise, gtk_widget_get_window returns NULL and we can't successfully
perform a grab via the later gdk_set_grab call. This fixes the entry
completion in the file chooser not working.
gtk/gtkentrycompletion.c